package com.hc.testaudio.deletea.test1.chart

import android.content.Context
import android.widget.TextView
import com.github.mikephil.charting.components.MarkerView
import com.github.mikephil.charting.data.Entry
import com.github.mikephil.charting.highlight.Highlight
import com.hc.testaudio.R

/**
 *
 */
class ChartMarker(context: Context) : MarkerView(context, R.layout.marker_view) {
    private val mContentTv: TextView

    init {
        mContentTv = findViewById(R.id.markerContextTv)
    }

    override fun refreshContent(e: Entry?, highlight: Highlight?) {
        mContentTv.text = "x:${e?.x}  y:${e?.y}"
        super.refreshContent(e, highlight)
    }
}